<?php
namespace app\mamx_forum\controller;
use think\facade\Config;


class Test extends \app\BaseController{
	public function showView()
	{
		// 1903010328获取前台替换字符串的定义
		$config = Config::get('view.tpl_replace_string');
		// 1903010328打印
		dump($config);
		$this->success('注册成功！','showconfig');
	}

	public function showConfig()
	{
		// 1903010328
		$database = Config::get('database');
		$default = Config::get('database.default');
		$username = Config::get('database.connections.mamx.username');
		// 1903010328
		dump($database);
		return "前台的默认数据库连接方案是：$default<br>
		默认使用的数据库用户是：$username";
	}
	// 1903010328
	public function showPage()
	{
		return view('',['unick' => '马敏欣和罗婉婷']);
	}
	public function testJump()
	{
		$this->success('这是testJump方法传递的方法','showpage');
	}
}